#ifndef READER_H
#define READER_H

#include <QRunnable>
#include <QThread>
#include "library.h"

class Reader : public QThread, public QRunnable
{
    int m_id;

    Library *m_library;
    int m_readingTimeMSecs;
    int m_sleepingTime;

public:
    explicit Reader(int id, Library *library, int readingTime, int sleepingTime);
    void run();
    void readBook(book_id_t wantBook);
    
signals:
    
public slots:
    
};

#endif // READER_H
